#include <iostream>
#include <future>
#include <thread>
int Add(int num1, int num2)
{
    std::cout << "add" << std::endl;
    return num1 + num2;
}
int main()
{
    std::future<int> fu = std::async(std::launch::async, Add, 11, 22);
    std::this_thread::sleep_for(std::chrono::seconds(1));
    std::cout << "--------------------" << std::endl;
    std::cout << fu.get() << std::endl;
    return 0;
}